#ifndef DOWNLOADFILEREQUESTCMD_H
#define DOWNLOADFILEREQUESTCMD_H

#include "Command/BaseCmd.h"
#include "Protocol/CloudProtocol.h"

class DownloadFileRequestCmd : public BaseCmd
{
    Q_OBJECT
public:
    enum{FunctionCode = CloudProtocol::DownloadFileRequest};

    Q_INVOKABLE explicit DownloadFileRequestCmd(QObject *parent = 0);

    Package toPackage();
    void unPackage(Package package);

    quint8 fileType() const;
    void setFileType(const quint8 &fileType);

    QMap<QString, QString> paramMap() const;
    void setParamMap(const QMap<QString, QString> &paramMap);

private:
    quint8 m_fileType;
    QMap<QString,QString> m_paramMap;
};

#endif // DOWNLOADFILEREQUESTCMD_H
